<?php
namespace app\kccsCourse\controller;
use app\common\Base;
use app\common\Compent;
use app\common\Emodel;
use think\Db;

class ClassDateConf extends Base {
	
	public function index() {
		return $this->fetch();
	}

	public function pageQuery() {
		$result = Db::table("T_COURSE_CLASS_DATE")
					->select();
		return $result;
	}

	public function addUpdate() {
		$all = request()->param();
		try {
			update('T_COURSE_CLASS_DATE', $all);
			return "000";
		} catch (Exception $e) {
			echo $e->getMessage();
		}
		return "999";
	}

}
